<template>
  <!-- 地址 -->
  <div class="address-box" v-if="subjects.length > 0">
    <div class="sub-item" v-for="(sub, index) in subjects" :key="index">
      <span class="icon">
        <img src="@/assets/head/sJ.png" alt="" />
      </span>
      <span class="address">{{ sub.title }}</span>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    subjects: Array
  }
}
</script>

<style lang="less" scoped>
.address-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px 0 0;

  .sub-item {
    border-radius: 999px;
    display: flex;
    background-color: #f1f1f1;
    padding: 5px 10px;
    align-items: center;
    margin-right: 5px;
    margin-bottom: 5px;

    .icon {
      height: 16px;
      width: 16px;

      img {
        height: 100%;
        width: 100%;
      }
    }
    .address {
      margin-left: 5px;
      font-size: 12px;
      color: #469dd9;
      line-height: 16px;
    }
  }
}
</style>
